package com.webase.web.action;

import java.util.List;

import com.webase.model.Menu;
import com.webase.service.MenuService;

public class MenuAction {
	MenuService menuService = null;
	
	List<Menu> menuList = null;
	
	/**
	 * @return the menuList
	 */
	public List<Menu> getMenuList() {
		return menuList;
	}


	/**
	 * @param menuList the menuList to set
	 */
	public void setMenuList(List<Menu> menuList) {
		this.menuList = menuList;
	}


	/**
	 * @return the menuService
	 */
	public MenuService getMenuService() {
		return menuService;
	}


	/**
	 * @param menuService the menuService to set
	 */
	public void setMenuService(MenuService menuService) {
		this.menuService = menuService;
	}


	public String execute(){
		menuList = menuService.list();
		return "list";
	}
}
